nestedsvm: fix checks of guest writes to HSAVE_PA MSR
authorChristoph Egger <Christoph.Egger@amd.com>
Thu, 13 Oct 2011 11:21:10 +0000 (12:21 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Thu, 13 Oct 2011 11:21:10 +0000 (12:21 +0100)
commite2f608687690c28fba52eb78cede62e516b1d26d
tree6b22c8859b4af78580d2fd63291b7b39337bedeb
parent2d1f750000dc65ed6dd60a1ce8dd53c3bf3d59a5
nestedsvm: fix checks of guest writes to HSAVE_PA MSR

Accessing HSAVE_PA MSR does not require SVM to be enabled nor any
special guest paging mode.
But accessing HSAVE_PA MSR requires the address to be 4k aligned.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/svm/nestedsvm.c